# 导包
import requests

# 创建接口类
from IHRM import app


class emplyee_Select_API:
    # http: // ihrm - test.itheima.net / api / sys / login
    def __init__(self):
        self.url_select_employee = app.BASE_URL +"/api/sys/user?page={page}&size={size}"


# 员工添加
    def select_employee(self,page,size):
        url_select = self.url_select_employee.format(page=page,size=size)
        return  requests.get(url=url_select,headers=app.header_data)


